package com.ruoyi.peizhen.api;


import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.peizhen.domain.PzHospitalHospital;
import com.ruoyi.peizhen.service.IPzHospitalHospitalService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api("医院列表")
@RestController
@RequestMapping("/api/pz/hospital")
public class HospitalController extends BaseController {
    @Autowired
    private IPzHospitalHospitalService pzHospitalHospitalService;

    @ApiOperation("查寻医院列表")
    @GetMapping("/hospitalList")
    public AjaxResult hospitalList(){
        List<PzHospitalHospital> list = pzHospitalHospitalService.selectPzHospitalHospitalList(new PzHospitalHospital());
        return AjaxResult.success(list);
    }

}


